#include "CSU8RP3216.h"
#include "DevicesWatchDog.h"

void vWatchdogInit(void)
{
    /* 设置分频系数 32分频 */
    WTS_2 = 0;
    WTS_1 = 1;
    WTS_0 = 1;

    /* 设置溢出值 */
    WDTIN = 100;

    /* 使能WDT时钟 */
    CST_WDT = 0;

    /* 看门狗使能 */
    WDTEN = 1;
}

void vWatchdogReload(void)
{
    asm("clrwdt");
}
